package com.yxp423.ssmempl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxp423.ssmempl.bean.Travel;
import com.yxp423.ssmempl.bean.User;
import com.yxp423.ssmempl.utils.base.AjaxResult;

import java.util.List;

public interface ITravelService {

    int saveTravel(Travel travel);

    IPage<Travel> getMyTravel(Page page, User user);

    /**
     * 获取我应审核的申请
     * @param page
     * @param user
     * @return
     */
    IPage<Travel> getMyReviewTravel(Page page,User user);

    AjaxResult updateTravel(Travel travel);

    AjaxResult updateBatch(Travel travel, List<Travel> travelList);

}
